import request from '@/utils/request'

// 查询设备告警列表
export function listEquipmentAlarm(data) {
  return request({
    url: '/equipmentAlarm/listEquipmentAlarm',
    method: 'post',
    data: data
  })
}

// 查询设备告警详细
export function getEquipmentAlarm(id) {
  return request({
    url: '/equipmentAlarm/getEquipmentAlarmById?id=' + id,
    method: 'get'
  })
}

// 新增设备告警
export function addEquipmentAlarm(data) {
  return request({
    url: '/equipmentAlarm/addEquipmentAlarm',
    method: 'post',
    data: data
  })
}

// 修改设备告警
export function updateEquipmentAlarm(data) {
  return request({
    url: '/equipmentAlarm/editEquipmentAlarm',
    method: 'post',
    data: data
  })
}

// 删除设备告警
export function delEquipmentAlarm(id) {
  return request({
    url: '/equipmentAlarm/delEquipmentAlarm?ids=' + id,
    method: 'delete'
  })
}


// 删除设备告警
export function listAlarmSettingSelect(data) {
  return request({
    url: '/alarmSetting/listAlarmSettingSelect',
    method: 'post',
    data,
  })
}

